package com.woniuxy.myshop.service;


import com.woniuxy.myshop.entity.User;
import com.woniuxy.myshop.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    UserMapper userMapper ;

    public User login(String username) {

        return userMapper.selectUserByName(username);
    }
}
